<div class="perfil-info-box">
    <div class="row ">
        <div class="col-lg-3">
            <?php if($user['User']['photo'] == ''){?>
                <img src='/img/perfil.jpg' />
            <?php }  else{ ?>
                <img src='/img/users/<?php echo $user['User']['photo'] ?>'/>
            <?php } ?>
        </div>
        <div class="col-lg-9">
            <?php if(!$this->User->checkFollowing($user['User']['id'])){ ?>
            <button class="btn add-follow btn-success pull-right" data-follow="<?php echo $user['User']['id'] ?>"><i class="glyphicon glyphicon-ok-circle"></i> Seguir </button>
            <?php } ?>
            <h1><?php echo $user['User']['first_name'] . ' ' . $user['User']['last_name']?></h1>
            <span>@<?php echo $user['User']['username'] ?></span>
            <p></p>
            <p><strong><i class="glyphicon glyphicon-briefcase"></i> Ocupação :</strong> <?php echo $user['User']['occupation'] ?></p>
            <p><strong><i class="glyphicon glyphicon-calendar"></i> Aniversário :</strong> <?php echo $user['User']['birth'] ?></p>
            <p><strong><i class="glyphicon glyphicon-envelope"></i> Email :</strong> <?php echo $user['User']['email'] ?></p>
             
            <p><strong><i class="glyphicon glyphicon-comment"></i> Status :</strong> <?php echo $user['User']['status_phrase'] ?></p>
            <p><strong><i class="glyphicon glyphicon-hand-right"></i> Seguidores :</strong> <span id="num_fallow"> <?php print_r($this->User->countFollowing($user['User']['id'])) ?> </span></p>
            
            
        </div>
    </div>
</div>